package com.github.barry.service

import com.github.barry.entity.User
import org.springframework.data.domain.Page

/**
 * @ClassName UserService
 * @Description TODO
 * @Author wangxuexing
 * @Date 2020/3/17 10:53
 * @Version 1.0
 */
trait UserService {
  /**
   * save model to db
   */
  def save(model: User): User

  /**
   * find model by page
   */
  def findAll(): java.lang.Iterable[User]
}
